import os
import subprocess

# Generate the site
subprocess.run(['pelican', 'content'])

# Commit and push to GitHub
os.chdir('output')
subprocess.run(['git', 'add', '.'])
subprocess.run(['git', 'commit', '-m', 'Update site'])
subprocess.run(['git', 'push', 'origin', 'main'])